﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ForecastPost_dlt.ascx.cs" Inherits="APP_Controls_ForecastPost_dlt" %>
 <div class="betting_predict">
        <div class="betting_predict_t">
            <h2>预测选号</h2>
            <span><a href="../ForecastPost_List.aspx">更多&gt;&gt;</a></span>
        </div>
        <ul class="betting_predict_ul">
        <%if (forecastDa != null)
          {
              for (int i = 0; i < forecastDa.Count; i++)
              {%>
                 <li>·<a href="ForecastPostInfo.aspx?id=<%=forecastDa[i].id %>"><%=forecastDa[i].Title.Length > 16 ? forecastDa[i].Title.Substring(0, 16) : forecastDa[i].Title %> </a></li>
            <%}
          } %>
        </ul>
    </div>
    <!--PaiHang-->
        <div class="d_r_t">
            <h2>中彩排行</h2>
            <p>本站累计中奖<span><%=jiangjin2 %></span> 亿元</p>
        </div>
        <ul class="d_paihang">
          <%if (userAccount != null && userAccount.Count > 0)
              {
                  for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++) 
                  {
                      %> 
        <li>
                <b <%if(i<3){ %>class="yellowbg"<%}else{ %> class="p_n"<%} %>><%=i+1 %></b>
                <p class="p_n"><%=SelectName(userAccount[i].user_id)%></p>
                <p class="p_date">
                 <%--   <%=Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元--%>
                       <%if (Convert.ToDecimal(userAccount[i].winTotal) > 100000000)//亿
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) / 100000000 ,2)%> 亿元
                                       <%}
                                           else
                                           {%>
                        <%if (Convert.ToDecimal(userAccount[i].winTotal) > 10000)
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) /10000 ,2)%> 万元
                                               <%}
                                                   else
                                                   {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal),2)%> 元
                                               <%}
                                                   }
                                               %>
                </p>
            </li> 
          <% }
              }%>   
        </ul>